<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST">
    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2">{:__('title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="title" name="row[title]" data-rule="required;title" placeholder="{:__('title')}" value="{$row.title}"/>
        </div>
    </div>

    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-content" class="form-control" rows="5" name="row[content]" cols="50" data-rule="required;content" value="{$row.content}"/>
        </div>
    </div>

    <div class="form-group">
        <label for="stock" class="control-label col-xs-12 col-sm-2">{:__('requirement')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="form-control" id="requirement" name="row[requirement]" data-rule="required;requirement" placeholder="{:__('requirement')}" value="{$row.requirement}"/>
        </div>
    </div>

    <div class="form-group">
        <label for="stock" class="control-label col-xs-12 col-sm-2">{:__('discount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="form-control" id="discount" name="row[discount]" data-rule="required;discount" placeholder="{:__('discount')}"  value="{$row.discount}"/>
        </div>
    </div>

    <div class="form-group">
        <label for="stock" class="control-label col-xs-12 col-sm-2">{:__('nums')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="form-control" id="nums" name="row[nums]" data-rule="required;nums" placeholder="1"  value="{$row.nums}"/>
        </div>
    </div>

    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2">{:__('createtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control datetimepicker" id="createtime" name="row[createtime]" data-rule="required;createtime" placeholder="{:__('createtime')}"  value="{$row.createtime|date='Y-m-d H:i:s',###}" />
        </div>
    </div>

    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2">{:__('endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control datetimepicker" id="endtime" name="row[endtime]" data-rule="required;endtime" placeholder="{:__('endtime')}" value="{$row.endtime|date='Y-m-d H:i:s',###}"/>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[status]', $statusList, $row.status, ['class'=>'selectpicker', 'required'=>''])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
  
</form>